package com.hnkywl.sts.entity.base;

import com.hnkywl.sts.entity.BaseEntity;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * 说明：数据字典值
 * 包:        com.hnkywl.sts.entity.base
 * 类描述:    数据字典值
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name="T_SYS_SJZDZ")
@Where(clause = "deleted!='1'")
public class Sjzdz extends BaseEntity{
    @Id
    @SequenceGenerator(name = "seqSjzdz", allocationSize = 1, sequenceName = "SEQ_SYS_SJZDZ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqSjzdz")
    private Long id;

    /**
     * 编码
     */
    private String bm;

    /**
     * 值
     */
    private String z;

    /**
     * 备注
     */
    private String bz;

    @ManyToOne
    @JoinColumn(name="ZDSY_ID")
    private Sjzdsy sjzdsy;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBm() {
        return bm;
    }

    public void setBm(String bm) {
        this.bm = bm;
    }

    public String getZ() {
        return z;
    }

    public void setZ(String z) {
        this.z = z;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public Sjzdsy getSjzdsy() {
        return sjzdsy;
    }

    public void setSjzdsy(Sjzdsy sjzdsy) {
        this.sjzdsy = sjzdsy;
    }
}
